<template>
	<view class="">
		<view class="mt-10 bg-white">
			<view class="padding-30 border-b flex justify-between">
				<text>备注信息</text>
				<text class="text-align-right line-gray">{{details.remark || '-'}}</text>
			</view>
			<view class="padding-30 border-b flex justify-between">
				<text>本次金额</text>
				<text class="text-align-right line-red">￥{{details.amount}}</text>
			</view>
			<view class="padding-30 border-b flex justify-between">
				<text>记录前余额</text>
				<text class="text-align-right line-red">￥{{details.beforeAmount}}</text>
			</view>
			<view class="padding-30 border-b flex justify-between">
				<text>记录后余额</text>
				<text class="text-align-right line-red">￥{{details.afterAmount}}</text>
			</view>
			<view class="padding-30 flex justify-between">
				<text>时间日期</text>
				<text class="text-align-right line-gray">{{details.createTime}}</text>
			</view>
		</view>
		<u-safe-bottom></u-safe-bottom>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderId: 0,
				details: {},
			}
		},
		onLoad(option) {
			this.orderId = option.id
			this.getDatails(this.orderId)
		},
		methods: {
			getDatails(id) {
				var that = this
				that.$reqJsonPost('CoreCmsStoreStaffStockGetDetails', { id: id }).then(res => {
					that.details = res.data
					console.log(that.details)
				})
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
